package com.jflyfox.modules.admin.tuanjoined;

import com.jflyfox.jfinal.base.BaseModel;
import com.jflyfox.jfinal.component.annotation.ModelBind;

@ModelBind(table = "tb_tuan_joined")
public class TbTuanJoined extends BaseModel<TbTuanJoined> {

	private static final long serialVersionUID = 1L;
	public static final TbTuanJoined dao = new TbTuanJoined();

    //columns START
    private String ID = "id";  // id
    private String TUAN_MAIN_ID = "tuan_main_id";  // 团主ID
    private String TUAN_COUNT = "tuan_count";  // 参团人数
    private String CONTENT = "content";  // 文件内容
    private String SORT = "sort";  // 排序
    private String CREATE_TIME = "create_time";  // 创建时间
    private String CREATE_ID = "create_id";  // 创建者
    
    public TbTuanJoined setId(Integer value) {
        set(ID, value);
        return this;
    }

	public Integer getId() {
		return get(ID);
	}
    public TbTuanJoined setTuanMainId(Integer value) {
        set(TUAN_MAIN_ID, value);
        return this;
    }

	public Integer getTuanMainId() {
		return get(TUAN_MAIN_ID);
	}
    public TbTuanJoined setTuanCount(Integer value) {
        set(TUAN_COUNT, value);
        return this;
    }

	public Integer getTuanCount() {
		return get(TUAN_COUNT);
	}
    public TbTuanJoined setContent(String value) {
        set(CONTENT, value);
        return this;
    }

	public String getContent() {
		return get(CONTENT);
	}
    public TbTuanJoined setSort(Integer value) {
        set(SORT, value);
        return this;
    }

	public Integer getSort() {
		return get(SORT);
	}
    public TbTuanJoined setCreateTime(String value) {
        set(CREATE_TIME, value);
        return this;
    }

	public String getCreateTime() {
		return get(CREATE_TIME);
	}
    public TbTuanJoined setCreateId(Integer value) {
        set(CREATE_ID, value);
        return this;
    }

	public Integer getCreateId() {
		return get(CREATE_ID);
	}
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[tuanMainId:" + getTuanMainId() + "]";
		log += "[tuanCount:" + getTuanCount() + "]";
		log += "[content:" + getContent() + "]";
		log += "[sort:" + getSort() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[createId:" + getCreateId() + "]";
		return log;
	}
}